import React from "react";

export interface GenAddTableData {

  tableName: string,

  className: string,

  charset: string,

  databaseName: string,

  charsetSort: string,

  autoIncrement: number,

  engine: string,


  fieldList: GenTableField[],

  indexList: IndexData[]

  desc: string,


}

export interface GenTableField {
  name?: string,

  type?: string,

  javaName?: string,

  javaType?: string,

  length?: number,

  point?: number,

  desc?: string,

  primary?: boolean,

  auto?: boolean,

  charset?: string,

  charsetSort?: string,

  notNull: boolean,

  id?: React.Key,
  defaultValue: string


}

declare const type: ["FULLTEXT", "NORMAL", "SPATIAL", "UNIQUE"];
export type IndexType = typeof type[number];

declare const method: ["BTREE", "HASH"];
export type IndexMethod = typeof method[number];

export interface IndexData {

  id: React.Key,

  indexField?: string[],

  indexName?: string,

  indexType?: IndexType,

  indexMethod?: IndexMethod,

  indexDesc?: string
}
